#include("/include/pageForm.html",action="admin/clearing/income/shareSearch")

<div class="pageHeader">
	<form rel="pagerForm" onsubmit="return navTabSearch(this);" action="admin/clearing/income/shareSearch" method="post">
	<div class="searchBar">
		<ul class="searchContent">
			
			<li>
				<label>开始日期：</label>
				<input type="text" id="settleDateStart" name="settleDateStart" value="#(settleDateStart)" class="date textInput readonly valid" datefmt="yyyy-MM-dd"/> 
			</li>
			<li>
				<label>结束日期：</label>
				<input type="text" name="settleDateEnd" value="#(settleDateEnd)" class="date textInput readonly valid" datefmt="yyyy-MM-dd"/> 
			</li>
			<li>
				<label>机构编号：</label>
				<input type="text" name="orgCode" value="#(orgCode )"/>
			</li>
		</ul>
		<div class="subBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">检索</button></div></div></li>
				<li><div class="button"><div class="buttonContent"><button type="reset">重置</button></div></div></li>
			</ul>
		</div>
	</div>
	</form>
</div>

<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			#auth()
				<li><a class="add" href="admin/clearing/income/share?settleDateStart={settleDateStart}" target="ajaxTodo" title="确定要进行分润吗？"><span>分润</span></a></li>
			#end
		</ul>
	</div>

	<div id="w_list_print">
	<table class="list" style="width: 100%" targetType="navTab" asc="asc" desc="desc" layoutH="116">
		<thead>
			<tr>
				<th width="80">日切日期</th>
				<th width="80">渠道编号</th>
				<th width="80">机构编号</th>
				<th width="80">支付类别</th>
				<th width="80">提取前余额</th>
				<th width="80">分润金额</th>
				<th width="80">提取后余额</th>
			</tr>
		</thead>
		<tbody>
			#for(item : items)
				<tr target="id" rel="#(item.id)">
					<td>#(item.settleDate )</td>
					<td>#(item.channelCode )</td>
					<td>#(item.orgCode )</td>
					<td>#(item.payTypeCode )</td>
					<td>#number(item.beforeBalance.toDouble()/100, "##,###,##0.00")</td>
					<td>#number(item.amount.toDouble()/100, "##,###,##0.00")</td>
					<td>#number((item.beforeBalance + item.amount).toDouble()/100, "##,###,##0.00")</td>
				</tr>
			#end
		</tbody>
	</table>
	</div>
	
	#include("/include/page.html")

</div>
